package com.lou.springboot.dao;

import com.lou.springboot.entity.BlogComment;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

/**
 * Created by Guaguaerhao on 2020/7/9 22:34
 */
@Mapper
public interface BlogCommentDao {
    List<BlogComment> findCommentList(Map map);
    int getTotalComments();
    BlogComment selectByPrimaryKey(Long commentId);
    boolean deleteByPrimaryKey(Integer commentId);
    int insertBlogComment(BlogComment blogComment);
    BlogComment selectByCommentName(@Param("commentName") String commentName);
    int deleteBatch(Integer[] ids);
    int updateComment(BlogComment blogComment);
    // 获取多个categories
    List<BlogComment> selectByCommentIds(@Param("commentIds") List<Integer> commentIds);
    List<BlogComment> getCommentPage(Map map);
    int getTotalCommentsByBlogId(Map map);
    int done(Integer[] commentIds);
    int updateByPrimaryKeySelective(BlogComment blogComment);
}
